{extends file="assets::smarty-templates::Master"|ToPath}

{block name=content}
{html_css file="whiteLabel/light/jquery.datatables.css"}
{html_script src="WhiteLabel.datatables.js"}

<a href="{$UrlVolver}" class="btn icon i_arrow_left small">Volver a mis cursos</a>
<form action="{$link}" method="post">
    <fieldset>
        <label>Estudiantes :: {$Curso->getMateria()->getNombreMateria()}</label>            
            <table class="datatable">
                <thead>
                    <tr>
                        <th></th>
                        <th class="sorting_asc">Codigo</th>
                        <th class="sorting">Estudiante</th>
                    </tr>
		</thead>

        <tbody>
        {foreach $Estudiantes as $Estudiante}
            <tr>
                <td>
                    <input type="checkbox" name="{bind name="Emails[]" to="Emails"}" value = "{$Estudiante->getCodigoEstudiante()} {$Estudiante->getNombres()} {$Estudiante->getApellidos()}" id="{$Estudiante->getCodigoEstudiante()}"/>
                </td>
                <td>                    
                        {$Estudiante->getCodigoEstudiante()}                    
                </td>
                <td>                    
                        {$Estudiante->getNombres()} {$Estudiante->getApellidos()}                    
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
            <dl>
                <div>
                <button class="i_create_write icon">Redactar Mensaje</button>
                </div>
            </dl>
            
    </fieldset>
</form>
<script>
    jQuery.noConflict();
    {literal}
    jQuery(document).ready(function($){
        $('table.datatable').dataTable( {
            "bLengthChange": false
	} );
    });
    {/literal}
</script>
{/block}
